package cn.iocoder.yudao.module.system.controller.admin.partnerstore.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;

import static cn.iocoder.yudao.framework.common.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY;
import static cn.iocoder.yudao.framework.common.util.date.DateUtils.TIME_ZONE_DEFAULT;

@Schema(description = "管理后台 - 合伙人管理店铺 Response VO")
@Data
@ExcelIgnoreUnannotated
public class PartnerStoreRespVO {

    @Schema(description = "主键自增", requiredMode = Schema.RequiredMode.REQUIRED, example = "6534")
    @ExcelProperty("主键自增")
    private Long id;

    @Schema(description = "关联合伙人id", example = "28933")
    @ExcelProperty("关联合伙人id")
    private Long partnerId;

    @Schema(description = "关联店铺id", example = "28933")
    @ExcelProperty("关联店铺id")
    private Long storeId;

    @Schema(description = "店铺名称", example = "28933")
    @ExcelProperty("店铺名称")
    private String storeName;

    @Schema(description = "店铺类型(1:旗舰店;2:精品店)", example = "28933")
    @ExcelProperty("店铺类型")
    private Integer storeType;

    @Schema(description = "合伙人成本(元)")
    @ExcelProperty("合伙人成本(元)")
    private BigDecimal partnerCost;

    @Schema(description = "合伙人类型：1-LP发起人；2-LP合伙人；", example = "2")
    @ExcelProperty("合伙人类型：1-LP发起人；2-LP合伙人；")
    private Integer partnerType;

    @Schema(description = "回本前分润比例%")
    @ExcelProperty("回本前分润比例%")
    private BigDecimal paybackBeforeProfitRate;

    @Schema(description = "回本后分润比例%")
    @ExcelProperty("回本后分润比例%")
    private BigDecimal paybackAfterProfitRate;

    @Schema(description = "分润开始日期")
    @ExcelProperty("分润开始日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate shareProfitStartDate;

    @Schema(description = "分润结束日期")
    @ExcelProperty("分润结束日期")
    @DateTimeFormat(pattern = FORMAT_YEAR_MONTH_DAY)
    @JsonFormat(pattern = FORMAT_YEAR_MONTH_DAY, timezone = TIME_ZONE_DEFAULT)
    private LocalDate shareProfitEndDate;

    @Schema(description = "推荐人类型：1-LP发起人；", example = "1")
    @ExcelProperty("推荐人类型：1-LP发起人；")
    private Integer referrerType;

    @Schema(description = "推荐人分润比例")
    @ExcelProperty("推荐人分润比例")
    private BigDecimal referrerProfitRate;

    @Schema(description = "创建时间", requiredMode = Schema.RequiredMode.REQUIRED)
    @ExcelProperty("创建时间")
    private LocalDateTime createTime;

}